using System.Collections.Generic;

namespace Close.io.Client
{
	public static class CloseIoEndpoints
	{
		public const string Lead = "lead";
		public const string Task = "task";
		public const string Note = "activity/note";
		public const string Email = "activity/email";
		public const string Call = "activity/call";
		public const string Contact = "contact";
		public const string LeadStatusChange = "/activity/status_change/lead/";
		public const string OpportunityStatusChange = "/activity/status_change/opportunity/";
	

		private static readonly Dictionary<string, string> EndPoints;

		static CloseIoEndpoints()
		{
			EndPoints = new Dictionary<string, string>()
			{
				{"Lead" , "lead"}
				,{"Task" , "task"}
				,{"Note" , "activity/note"}
				,{"Email" , "activity/email"}
				,{"Call" , "activity/call"}
				,{"Contact" , "contact"}
				,{"Opportunity" , "opportunity"}
			};
		}

		public static string GetEndpoint(string typeName)
		{
			string endPoint;
			EndPoints.TryGetValue(typeName, out endPoint);
			return endPoint;

		}

	}
}